package com.dkcrow.spring.transaction;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dkcrow.spring.transaction.service.UserServiceImpl;

/**
 * Hello world!
 *
 */
public class TransactionApp
{
	final static Logger logger = LoggerFactory.getLogger(TransactionApp.class.getClass());
	
	public static ApplicationContext ap;
	
    public static void main( String[] args )
    {
    	ap = new ClassPathXmlApplicationContext("spring/unit-local-jdbc-context_.xml");
    	UserServiceImpl userServiceImpl = (UserServiceImpl) ap.getBean("userServiceImpl");
    	userServiceImpl.deleteAllUser();
    	userServiceImpl.testLocalMethod();
    }
}
